<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ include file="include/header.jsp"%>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>武汉市企业专属空间</title>
<link rel="stylesheet" href="css/style.default.css" type="text/css" />
<!-- 
<link rel="stylesheet" href="css/style.navyblue.css" type="text/css" />-->
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="js/jquery-migrate-1.1.1.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.9.2.min.js"></script>
<script type="text/javascript" src="js/modernizr.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/jquery.cookie.js"></script>
<script type="text/javascript" src="js/jquery.jgrowl.js"></script>
<script type="text/javascript" src="js/jquery.alerts.js"></script>
<script type="text/javascript" src="js/custom.js"></script>
</head>
<body class="loginpage">
	<div class="header">
  		
	</div>
	<div class="maincontent">
		<div class="maincontentinner">
			<div class="widgetbox box-inverse">
				<h4 class="widgettitle" style="text-align:center">专属空间-绑定法人股东身份</h4>
				<div class="widgetcontent nopadding">
					<form class="stdform stdform2" method="post" action="">
						<p>
							<label style="text-align:right; margin-top: inherit">注册号/统一信用码：</label>
							<span class="field"><input type="text" name="szch" id="szch"
								class="input-large" placeholder="请输入企业注册号或统一信用码" /></span>
						</p>
						<p>
							<label style="text-align:right">企业名称：</label> <span class="field"><input
								type="text" name="sqymc" id="sqymc" class="input-large"
								placeholder="请输入企业名称" /></span>
						</p>
						<p>
							<label style="text-align:right">负责人/法人代表姓名：</label> <span class="field"><input
								type="text" name="fzr" id="fzr" class="input-large"
								placeholder="请输入负责人姓名" /></span>
						</p>
						<p>
							<label style="text-align:right">负责人/法人代表证件号码：</label> <span class="field"><input
								type="text" name="fzrzjhm" id="fzrzjhm" class="input-large"
								placeholder="请输入负责人证件号码" /></span>
						</p>

						<p>
							<label style="text-align:right">法人股东名称：</label> <span class="field"><input
								type="text" name="identName" id="identName" class="input-large"
								placeholder="请输入法人股东名称" /></span>
						</p>
						<p>
							<label style="text-align:right">法人股东证照号码：</label> <span
								class="field"><input type="text" name="identCode" id="identCode"
													 class="input-large" placeholder="请输入法人股东证照号码" /></span>
						</p>
						<p class="stdformbutton" style="text-align:center">
							<a href="javascript:void(0);" onclick="bindent();" class="btn btn-primary btn-rounded"> <i class="iconsweets-companies iconsweets-white"></i>  &nbsp; 绑&nbsp;&nbsp;定</a>
						</p>
					</form>
				</div>
			</div>
		</div>
	</div>
	<!--footer-->
	</div>
	<div id="lean_overlay">
		<img src="images/loaders/loader7.gif" alt="" />
	</div>
</body>
</html>
<script>
function validate(){
	if(!jQuery("#szch").val()){
		jQuery.jGrowl("企业注册号不能为空");
		return false;
	}
	if(!jQuery("#sqymc").val()){
		jQuery.jGrowl("企业名称不能为空");
		return false;
	}
	if(!jQuery("#fzr").val()){
		jQuery.jGrowl("负责人姓名不能为空");
		return false;
	}
	if(!jQuery("#fzrzjhm").val()){
		jQuery.jGrowl("负责人证件号码不能为空");
		return false;
	}
	if(!jQuery("#identCode").val()){
		jQuery.jGrowl("法人股东证照号码不能为空");
		return false;
	}
	if(!jQuery("#identName").val()){
		jQuery.jGrowl("法人股东名称不能为空");
		return false;
	}
	return true;
}
	
function bindent(){
	if(!validate()){
		return;
	}
	jQuery("#lean_overlay").show();
	jQuery.post(
			"bindent.html",
			{
				szch : jQuery("#szch").val(),
				sqymc : jQuery("#sqymc").val(),
				fzr : jQuery("#fzr").val(),
				fzrzjhm : jQuery("#fzrzjhm").val(),
				identCode : jQuery("#identCode").val(),
				identName : jQuery("#identName").val(),
				identType : "${identType}"
			},
			function(result){
				jQuery("#lean_overlay").hide();
				if(result.result == '10000'){
					//跳转到主页
					window.location.href = "toMain.do";
				}else{
					jQuery.alerts.dialogClass = 'alert-danger';
					jAlert(result.description, '出错了', function(){
		                  jQuery.alerts.dialogClass = null;
		            });
				}
			}
	);	
}
</script>